package com.settlement.system.model.entity.common;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
/**
 * 唯品会品牌对应配置
 * @author xiaochuan
 * @since 2020-04-09
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblWpBrandUnitConfig extends BaseModel implements Serializable {


    /**
     * 唯品品牌部名称
     */
    @ExcelProperty(index = 0,value = "唯品品牌部名称")
    @NotNull(message = "唯品品牌部不能名称为空")
    private String wpBrandName;

    /**
     * 品牌部编码
     */
    private String brandUnitNo;

    /**
     * 品牌简称
     */
    @ExcelProperty(index = 1,value = "品牌简称")
    @NotNull(message = "品牌简称不能名称为空")
    private String nameShort;

    /**
     * 品牌部名称
     */
    @ExcelProperty(index = 2,value = "品牌部名称")
    @NotNull(message = "品牌部名称不能为空")
    private String brandUnitName;

    /**
     * 商家编码
     */
    @ExcelProperty(index = 3,value = "商家编码")
    @NotNull(message = "商家编码不能为空")
    private String vendorCode;

    @Override
    public String toString() {
        return "TblWpBrandUnitConfig{" +
                "wpBrandName='" + wpBrandName + '\'' +
                ", vendorCode='" + vendorCode + '\'' +
                '}';
    }
}
